package com.zh.whter;

import javax.xml.rpc.ServiceException;
import java.rmi.RemoteException;

public class WeatherTest {
    public static void main(String[] args) throws ServiceException, RemoteException {
        WeatherWSLocator weatherWSLocator = new WeatherWSLocator();
        WeatherWSSoap_PortType wsSoapPortType = weatherWSLocator.getWeatherWSSoap();
        String[] list = wsSoapPortType.getWeather("深圳", null);
        for (int i = 1; i < list.length; i++) {
            System.out.println("第"+i+"行     "+list[i]);
        }
    }
}
